<html>
<head><meta charset="utf-8"><title>escaping lifetimes in impl trait · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/escaping.20lifetimes.20in.20impl.20trait.html">escaping lifetimes in impl trait</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="147765785"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/escaping%20lifetimes%20in%20impl%20trait/near/147765785" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/escaping.20lifetimes.20in.20impl.20trait.html#147765785">(Nov 15 2018 at 19:19)</a>:</h4>
<p><span class="user-mention" data-user-id="124069">@Alexander Regueiro</span> regarding <a href="https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999" target="_blank" title="https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999">the issue of escaping lifetimes in impl trait</a>, I have no immediate plans to do anything about it, but it seems clear the current rules are too limiting. I feel like we ought to be able to accept that code but I have to re-read and try to remember what I had in mind :)</p>



<a name="147765972"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/escaping%20lifetimes%20in%20impl%20trait/near/147765972" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/escaping.20lifetimes.20in.20impl.20trait.html#147765972">(Nov 15 2018 at 19:22)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> yeah... it's a little problematic. do let me know your thoughts whenever you have time to review the issue. :-)</p>



<a name="147765986"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/escaping%20lifetimes%20in%20impl%20trait/near/147765986" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/escaping.20lifetimes.20in.20impl.20trait.html#147765986">(Nov 15 2018 at 19:22)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> I think <a href="https://github.com/rust-lang/rust/issues/42940" target="_blank" title="https://github.com/rust-lang/rust/issues/42940">https://github.com/rust-lang/rust/issues/42940</a> and <a href="https://github.com/rust-lang/rust/issues/51069" target="_blank" title="https://github.com/rust-lang/rust/issues/51069">https://github.com/rust-lang/rust/issues/51069</a> are closely related, but I don't know if they're exactly the same thing.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>